import json

from flask import Flask
from flask import request

app = Flask(__name__)


@app.route("/sigma", methods=["POST"])
def sigma():
    number = request.form['number']
    number = int(number)
    result = 0
    for i in range(1, number + 1):
        result += 1
    response_data = {
        "result": result
    }
    return json.dumps(response_data)


if __name__ == '__main__':
    app.run()
